package com.goodfather.textbook.youdao.pad.bean;


import androidx.annotation.NonNull;

/**
 * 教材分类
 */

public class Publisher implements Comparable<Publisher> {

    private String id;
    private String alias;
    private String name;
    private int sort;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }


    @Override
    public int compareTo(@NonNull Publisher publisher) {
        return this.sort - publisher.sort;
    }
}
